<!-- <template>
  <div>
    <h2>姓名：{{ name }}</h2>
    <h2>年龄：{{ age }}</h2>
    <button @click="showtel">查看联系方式</button>


  </div>
</template>

<script lang="ts">

export default {
  name: 'Person',
  data() {
    return {
      name: '张三',
      age: '7',
      tel: '13467879879'
    }
  },


  methods: {
    showtel() {
      alert(this.tel);


      
    },




  },

}
</script>

<style lang="scss" scoped></style> -->